package com.ijunfu.spring.autowired._01_autowired_attribute.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/6 12:27
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@Service
public class UserService {

    // 注入方式一：属性注入
    @Autowired
    private RoleService roleService;

    public void printRoleService() {
        System.out.println(roleService);
    }

}
